package com.hh.base.ui

import com.hh.base.widget.dialog.MultifunctionDialog
import com.hh.base.widget.pickerview.listener.OnTimeSelectListener
import java.util.Date

/**
 * Create By hHui on 2025/4/3 15:12
 *
 * @description
 */
interface BaseView {
    fun showToast(msg: String)
    fun alertMessage(msg: String)
    fun alertTitleAndMessage(title: String = "提示", msg: String)
    fun showLoading(msg: String = "Loading...")
    fun showLoadingCancel(msg: String, cancelText: String = "取消", cancelListener: MultifunctionDialog.AlertCancelListener)
    fun hideLoading()
    fun alertOption(title: String = "提示", msg: String, clickListener: MultifunctionDialog.AlertClickListener, sureText: String = "确定", cancelText: String = "取消")
    fun jump2Activity(cla: Class<*>, isFinishBefore: Boolean, map: Map<String, String>? = null)
    fun showDateTimerPicker(callback: OnTimeSelectListener, date: Date? = null, array: BooleanArray = booleanArrayOf(true, true, true, true, true, false))
}